package com.fgba.express.data.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fgba.express.comm.enums.State;
import com.fgba.express.core.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 角色Dto
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RoleDto对象", description = "角色Dto")
@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
public class RoleDto extends BaseDto {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "角色代码")
    private String code;

    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 状态，0为删除，1为正常，2为禁用
     */
    @ApiModelProperty(value = "状态")
    private State state;
}
